﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Linq;

namespace HRdex_Final.Calendar
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string connectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\Database1.mdf;Integrated Security=True;User Instance=True";
            //SqlConnection myConn = new SqlConnection(connectionString);
            ////string title1 = txtTitle.Text;
            ////string details1 = txtdetails.Text;
            ////DateTime selDate1 = DateTime.Parse(Session["date"] as String);
            //SqlCommand myCommand = new SqlCommand("INSERT INTO tblEvent(Title,Details,date) VALUES(@Title,@Details,@date)", myConn);
            ////myCommand.Parameters.AddWithValue("@Title", title1);
            ////myCommand.Parameters.AddWithValue("@Details", details1);
            ////myCommand.Parameters.AddWithValue("@date", selDate1);


            //myConn.Open();
            ////myCommand.ExecuteNonQuery();

            //myConn.Close();
        }
    }
}